<div id="left_column" class="column_left">
            	<?php echo $this->element('user/left_user_home_menu'); ?>
        </div>
	<div id="right_column" class="column_right">
            <div id="main-content">
<?php echo $this->Html->script('jquery.autogrow-textarea'); ?>

<?php
        echo sprintf(__('<strong> Reply to: %s </strong>', true), $username);
	echo $this->Form->create('Message', array( 'action' => 'sent', 'id' => 'message_form'));

        echo $this->Form->hidden('receiver_id', array('value' => $receiverId));
        echo $this->Form->hidden('reply_of', array('value' => $replyOf));
        //echo $this->Form->input('title', array('label' => __('Title', true), 'id' => 'title'));
        echo $this->Html->tag('label', __('Message', true), array('for' => 'message'));
	echo $this->Form->input( 'message', array( 'label' => false, 'classs' => 'noticemessage', 'id' => 'message' ));
	echo $this->Html->div('button-sent',

                $this->Form->button('Sent',
			array(
                            'type' => 'button',
                            'class' => 'submit white',
                            'id' => 'button-sent'
			))
                );
	echo $this->Form->end();
?>
             </div> <!-- end main -->
            <div id="main-right">

            </div>
	</div><!-- end right-column -->
<script type="text/javascript">
    //<![CDATA[
    $(document).ready(function () {
        //auto resize textarea
        $('textarea').autogrow();


        $("#button-sent").bind("click", function (event) {
             if($('#message').val().length < 1){
                $.jGrowl('<?php __('Message cannot blank!');?>');
                return false;
            }else{
                $('#message_form').submit();
            }
        });
    });
    //]]>
</script>
